package com.bed.lovewithpatientbed.common.bean;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author xuxiaoding
 * @version 1.0.0
 * @ClassName LayUiSideMenuBean.java
 * @Description TODO
 */
@NoArgsConstructor
@Data
public class LayUiSideMenuBean {

    /**
     * code : 0
     * msg :
     * data : [{"title":"主页","icon":"layui-icon-home","jump":"/"},{"title":"用户管理","icon":"layui-icon-home","jump":"/"},{"title":"用户管理","icon":"layui-icon-home","list":[{"title":"订单管理","jump":"order/orderlist"},{"title":"订单管理","jump":"order/orderlist"}]}]
     */

    @JsonProperty("code")
    private Integer code;
    @JsonProperty("msg")
    private String msg;
    @JsonProperty("data")
    private List<DataDTO> data;

    @NoArgsConstructor
    @Data
    public static class DataDTO {
        /**
         * title : 主页
         * icon : layui-icon-home
         * jump : /
         * list : [{"title":"订单管理","jump":"order/orderlist"},{"title":"订单管理","jump":"order/orderlist"}]
         */

        @JsonProperty("title")
        private String title;
        @JsonProperty("icon")
        private String icon;
        @JsonProperty("jump")
        private String jump;
        @JsonProperty("list")
        private List<ListDTO> list;

        @NoArgsConstructor
        @Data
        public static class ListDTO {
            /**
             * title : 订单管理
             * jump : order/orderlist
             */

            @JsonProperty("title")
            private String title;
            @JsonProperty("jump")
            private String jump;
        }
    }
}
